package com.qingcheng.controller.order;


import com.alibaba.dubbo.config.annotation.Reference;
import com.qingcheng.service.order.CategoryReportService;
import com.qingcheng.service.order.OrderService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Controller;

import java.util.Date;

/**
 * Welcome to the most Amazing IntelliJ IIIDEA.
 * Creat0r: ^_^ fffantianxing ^_^
 * Date: 2019-06-27
 * Time: 12:58
 */
@Controller
public class OrderTask {

    @Reference
    private OrderService orderService;
    @Reference
    private CategoryReportService categoryReportService;

//    @Scheduled(cron = "* 0/2 * * * ?")
//    public void testTask(){
//        System.out.println(new Date());
//        orderService.orderTimeoutLogic();
//    }
//
//    @Scheduled(cron = "* 0/2 * * * ?")
//    public void createCategoryReportData(){
//        System.out.println("createCategoryReportData");
//        categoryReportService.createData();
//    }

}
